﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace _17bangMVC.Models.Article
{
    public class NewModel
    {
        [Required(ErrorMessage = "*标题不能为空")]
        public string Title { get; set; }
        [Required(ErrorMessage = "*正文不能为空")]
        public string Description { get; set; }
        public string Default { get; set; }
        public string Abstract { get; set; }

        [Required(ErrorMessage = "*关键字不能为空")]
        [MaxLength(25, ErrorMessage = "关键字的长度不能大于25")]
        public string Keyword { get; set; }
        [Required(ErrorMessage = "*文本不能为空")]
        [MaxLength(24, ErrorMessage = "文本的长度不能大于25")]
        public string Text { get; set; }
        [Required(ErrorMessage = "*链接不能为空")]
        [Url(ErrorMessage = "*URL格式错误")]
        public string Link { get; set; }
        public string AD { get; set; }
    }
}